from ast import operator
from asyncio import FIRST_COMPLETED

fist = float(input("请输入第一个数："))
second = float(input("请输入第二个数："))
operator = input("请选择运算符：+-*/:")
if operator == '+':
   print (first + second)
elif operator == '_':
     print (first - second)
elif operator == '*':
    print (first * second)
elif operator == '/':
    if second == 0:
      print("除数不为0") 
    else:
        print (FIRST_COMPLETED/second)
uess_num = input("请设定猜数的数值: \n")
for frequency in range(1,6):
     number = input("请输入 第" +str(frequency )+"次猜测的数字:")
     if number.isdigit() is False:
      print('请输入一个正确的数字')
     elif int( number) < e or int( number)>100:
      print("请输入1-18日范围的数字")
     elif int(guess_num) == int( number) :
      print (" 恭喜你用了%d次猜对了"
       %frequency)
     break
      elif  int(guess_num) > int( number):
      print("很遗憾，你猜小了")
     else:
      print("很遗憾，你猜大了")if frequency == 5:
      print("很遗憾，%d次机会己用尽,游戏结束,答案为%d"%
              (frequency,int(guess_num)))



      from re import TEMPLATE